package com.example.demo.entryWarehouse.service;

import com.example.demo.common.ResponseData;
import com.example.demo.entryWarehouse.dto.Acceptance;
import com.example.demo.entryWarehouse.entity.AcceptInform;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangxuan
 * @since 2021-05-03
 */
public interface AcceptInformService extends IService<AcceptInform> {
    //所有的验收记录
    ResponseData selectAll();

    //所有未完成的验收记录
    ResponseData selectByNot();

    //按编号查验收记录
    ResponseData selectById(String acceptId);

    //按验收状态查询
    ResponseData selectByStatus(String status);

    //新建验收
    ResponseData addAccept(Acceptance acceptance);

    //更改验收(部门名称、供货单位、合同号、到货地点、账单或发票号)
    ResponseData editAccept(AcceptInform acceptInform);

    //更改验收状态，并入库和更新数量等操作
    ResponseData editStatus(AcceptInform acceptInform);

    //所有已完成的验收记录
    ResponseData selectByOk();

    //导出验收单
    ResponseData exportAccept(String acceptId);

    void exportAccept1(HttpServletResponse response, String acceptId) throws IOException;

    //导出验收单
    ResponseData exportReceive(String acceptId);

    //导出验收单
    ResponseData exportReturn(String acceptId);

}
